import javax.swing.*;

public class TicTacToe {
	public static void main(String[] args) {
		int [][] ticTacToe = new int [3][3];		
		char ticTac;
                String turn;
		do {
                    turn = JOptionPane.showInputDialog(null, 
				"This is a game of TIC TAC TOE\nAnd this is a board of this game\n  1  2  3"
				+ "\n1\n2\n3\nYour turn(position like 2,2):", 
				"TIC TAC TOE", JOptionPane.QUESTION_MESSAGE);
                } while (turn.length() <= 0 || turn.length() > 3);
		double value = Double.parseDouble(turn);
                int xPos = (int) value;
                double temp = value - xPos;
                int yPos = (int) (temp * 10);
                    
                System.out.println(xPos + " " + yPos);
        }

}
